package pe.gob.onpe.facade.remote;

import java.util.List;
import javax.ejb.Remote;

import pe.gob.onpe.ejb.ProcesoElectoral;


/**
 * Remote interface for ProcesoElectoralFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Remote
public interface ProcesoElectoralFacadeRemote {
	/**
	 * Perform an initial save of a previously unsaved ProcesoElectoral entity.
	 * All subsequent persist actions of this entity should use the #update()
	 * method.
	 * 
	 * @param entity
	 *            ProcesoElectoral entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(ProcesoElectoral entity);

	/**
	 * Delete a persistent ProcesoElectoral entity.
	 * 
	 * @param entity
	 *            ProcesoElectoral entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(ProcesoElectoral entity);

	/**
	 * Persist a previously saved ProcesoElectoral entity and return it or a
	 * copy of it to the sender. A copy of the ProcesoElectoral entity parameter
	 * is returned when the JPA persistence mechanism has not previously been
	 * tracking the updated entity.
	 * 
	 * @param entity
	 *            ProcesoElectoral entity to update
	 * @returns ProcesoElectoral the persisted ProcesoElectoral entity instance,
	 *          may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public ProcesoElectoral update(ProcesoElectoral entity);

	public ProcesoElectoral findById(Long id);

	/**
	 * Find all ProcesoElectoral entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the ProcesoElectoral property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ProcesoElectoral> found by query
	 */
	public List<ProcesoElectoral> findByProperty(String propertyName,
			Object value, int... rowStartIdxAndCount);

	public List<ProcesoElectoral> findByNombre(Object nombre,
			int... rowStartIdxAndCount);

	public List<ProcesoElectoral> findByDescripcion(Object descripcion,
			int... rowStartIdxAndCount);

	public List<ProcesoElectoral> findByEstadoproceso(Object estadoproceso,
			int... rowStartIdxAndCount);

	/**
	 * Find all ProcesoElectoral entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ProcesoElectoral> all ProcesoElectoral entities
	 */
	public List<ProcesoElectoral> findAll(int... rowStartIdxAndCount);
	
}